<?if($this->query->count() > 0):?>
	<?$i=0;?>
	<br />
	<span class="subboard_title"><img src="<?=$this->baseUrl()?>/static/gfx/icons/folder_table.png" alt="<?=$this->translate->_('subboards_title')?>" title="<?=$this->translate->_('subboards_title')?>" /></span>
	<span style="position:relative; top:-3px;">
	<?foreach($this->query->toArray() AS $result):?>
		<?$i++;?>
		<?if($result['is_public'] == 0 && !$this->hasAccess($result['uid'])): continue; endif;?>
		
		<a class="subboards" href="<?=$this->url(array('controller' => 'threads', 'uid' => $result['uid'], 'title' => $this->CleanUrlTitle($result['title'])), 'boards', true);?>"><?=$result['title']?></a>
		<?if($i<$this->query->count()):?>,<?endif;?>
	<?endforeach;?>
	</span>
<?endif;?>